/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * @author 品讯科技
 */

package com.px.pa.modulars.circle.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 
 *
 * @author 品讯科技
 * @date 2024-08
 */
@Data
@TableName("circle_dynamic_comment")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "")
public class CircleDynamicComment extends Model<CircleDynamicComment> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId
    @ApiModelProperty(value="")
    private Integer id;
    /**
     * 文章id
     */
    @ApiModelProperty(value="文章id")
    private Integer dynamic;
    /**
     * 用户id
     */
    @ApiModelProperty(value="用户id")
    private Integer uid;
    /**
     * 评价内容
     */
    @ApiModelProperty(value="评价内容")
    private String content;
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime creatTime;
    @ApiModelProperty(value = "浏览量")
    private Integer views;
    @ApiModelProperty(value = "热度")
    private Integer heat;

    @ApiModelProperty(value = "审核状态")
    private Integer isAudit;


    @TableField(exist = false)
    private String dynamicName;


    @TableField(exist = false)
    private CircleUser circleUser;


    /**
     * 评论数
     */
    @TableField(exist = false)
    private Integer commentNum;
    /**
     * 点赞数
     */
    @TableField(exist = false)
    private Integer praiseNum;

    /**
     * 回答问题标题
     */
    @TableField(exist = false)
    private String title;

    /**
     * 是否赞同
     */
     @TableField(exist = false)
    private Integer isPraise;

     @TableField(exist = false)
    private LocalDateTime createTime;


    @ApiModelProperty(value="租户编码")
    private String tenantCode;


    }
